package action.learn;

public class parent {
    private static  int a=1;
    private static  int b;
    private   int c=initc();
    static {
        b=1;
        System.out.println("1.父类静态代码块：赋值b成功");
        System.out.println("1.父类静态代码块：a的值"+a);
    }
    int initc(){
        System.out.println("3.父类成员变量赋值：---> c的值"+c);
        this.c=12;
        System.out.println("3.父类成员变量赋值：---> c的值"+c);
        return c;
    }
    public parent(){
        System.out.println("4.父类构造方式开始执行---> a:"+a+",b:"+b);
        System.out.println("4.父类构造方式开始执行---> c:"+c);

    }

}
